package com.ruoyi.basedata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务记录明细对象 t_task_detail
 * 
 * @author gdqt
 * @date 2024-04-18
 */
@TableName("t_task_detail")
public class TaskDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    @TableField("id")
    private Long id;

    /** 租户ID */
    @Excel(name = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    /** 任务ID */
    @Excel(name = "任务ID")
    @TableField("task_id")
    private String taskId;

    /** 经纬度，[120.234,20.3652] */
    @Excel(name = "经纬度，[120.234,20.3652]")
    @TableField("position")
    private String position;

    /** 里程 */
    @Excel(name = "里程")
    @TableField("Mileage")
    private BigDecimal Mileage;

    /** 数据上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "数据上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("datatime")
    private Date datatime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantId(String tenantId) 
    {
        this.tenantId = tenantId;
    }

    public String getTenantId() 
    {
        return tenantId;
    }
    public void setTaskId(String taskId) 
    {
        this.taskId = taskId;
    }

    public String getTaskId() 
    {
        return taskId;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setMileage(BigDecimal Mileage) 
    {
        this.Mileage = Mileage;
    }

    public BigDecimal getMileage() 
    {
        return Mileage;
    }
    public void setDatatime(Date datatime) 
    {
        this.datatime = datatime;
    }

    public Date getDatatime() 
    {
        return datatime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("taskId", getTaskId())
            .append("position", getPosition())
            .append("Mileage", getMileage())
            .append("datatime", getDatatime())
            .toString();
    }
}
